#include <stdio.h>
#define C 1000
#define LOFSIDE 10
int minAreas(int n)
{
    int minRet = 0x3f3f3f3f;
    for(int x = 1;x<=n;++x)
    {
        for(int y = 1;y<=n;++y)
        {
            for(int z = 1;z<=n;++z)
            {
                if(x*y*z == n)
                {
                    int areas = 200*(x*y+x*z+y*z);
                    minRet = minRet<areas?minRet:areas;
                }
            }
        }
    }
    return minRet;
}

int main()
{
    int n = 0;
    printf("input:");
    scanf("%d",&n);
    int ret = minAreas(n);
    printf("minAreas:%d\n",ret);
    return 0;
}
